MousePressed

public interface MousePressed implements MouseEvent

An event indicating that the mouse button has been pressed.

Types

Link copied to clipboard
public final class Builder
A builder of MousePressed.

Functions

Link copied to clipboard
public MouseButton button()
Returns the pressed mouse button.
Link copied to clipboard
public int clickCount()
Returns the count of consecutive clicks that happened in a short amount of time.
Link copied to clipboard
Returns the keyboard modifiers applied.
Link copied to clipboard
public Point location()
Returns the mouse position relative to the bounds of the browser instance.
Link copied to clipboard
Returns the mouse position relative to the bounds of the screen.
Link copied to clipboard
Returns the mouse modifiers applied.
Link copied to clipboard
public static MousePressed.Builder newBuilder(Point location)
Creates a new MousePressed builder with the given required parameters.